Adwaita: fix active state for radios & checkboxes
authorJakub Steiner <jimmac@gmail.com>
Wed, 15 Apr 2020 11:34:41 +0000 (13:34 +0200)
committerJakub Steiner <jimmac@gmail.com>
Wed, 15 Apr 2020 11:34:41 +0000 (13:34 +0200)
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2493

gtk/theme/Adwaita/_drawing.scss

index 3c1de0e34edd3e25a0024dae62a0040d97848447..7020c4044f2f5ce79f29c920f49fc917ddd9806d 100644 (file)
   }
 
   @if $t==active {
-    box-shadow: inset 0 1px 1px 0px if($variant == 'light', rgba(0, 0, 0, 0.2), black);
+    box-shadow: inset 0 1px if($variant == 'light', rgba(0, 0, 0, 0.2), black);
+    background-image: if($c == white, image(darken($c, 15%)), image(darken($c, 5%)));
   }
 
   @if $t==insensitive {